package com.xuelang.pipeline.infrastructure.pipeline.converter;

import com.xuelang.pipeline.domain.pipeline.PipelineTag;
import com.xuelang.pipeline.infrastructure.pipeline.dataobject.PipelineTagDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 流水线标签实体与流水线标签DO转换器类
 *
 * @author xiwen.zxg
 * @since 2024/5/15
 */
@Mapper
public interface PipelineTagToPipelineTagDOConverter {

    PipelineTagToPipelineTagDOConverter INSTANCE = Mappers.getMapper(PipelineTagToPipelineTagDOConverter.class);

    /**
     * PipelineTag转化为PipelineTagDO
     * @param pipelineTag
     * @return
     */
    PipelineTagDO pipelineTagToPipelineTagDO(PipelineTag pipelineTag);

    /**
     * PipelineTagDO转化为PipelineTag
     * @param pipelineTagDO
     * @return
     */
    PipelineTag pipelineTagDOToPipelineTag(PipelineTagDO pipelineTagDO);

}
